package setOfEquation;
import org.junit.Test;

import junit.framework.Assert;
// class nay da duoc kiem tra
public class Test2 {
	@Test
	public void test(){
		Solve s= new Solve();
		/*s.setA(2);
		s.setB(0);
		s.setC(0);
		s.setD(0);
		s.setE(1);
		s.setF(0);
		System.out.println(s.solve());
		Assert.assertEquals("X = -0.0  &  Y = -0.0 ",s.solve());
		*/
		/*s.setA(1);
		s.setB(2);
		s.setC(1);
		s.setD(3);
		s.setE(1);
		s.setF(2);
		System.out.println(s.solve());
		Assert.assertEquals("X = 0.6  &  Y = 0.2 ",s.solve());*/
		/*s.setA(0);
		s.setB(0);
		s.setC(1);
		s.setD(1);
		s.setE(1);
		s.setF(0);
		System.out.println(s.solve());
		Assert.assertEquals("No roof",s.solve());*/
		/*s.setA(2);
		s.setB(7);
		s.setC(1);
		s.setD(1);
		s.setE(1);
		s.setF(0);
		System.out.println(s.solve());
		Assert.assertEquals("No roof",s.solve());*/
		
		// SAI
		/*s.setA(2000000000);
		s.setB(10000);
		s.setC(40000);
		s.setD(10000);
		s.setE(90000);
		s.setF(75644);
		System.out.println(s.solve());
		Assert.assertEquals("X = 1.57*10^5  &  Y = 0.840487 ",s.solve());*/
		
		//SAI
		s.setA(-20000);
		s.setB(-10000);
		s.setC(40000);
		s.setD(10000);
		s.setE(90000);
		s.setF(75644);
		System.out.println(s.solve());
		Assert.assertEquals("X = -2.5626117  &  Y = 1.1252235",s.solve());
	}

}
